/** @jsxImportSource @emotion/react */
import * as React from "react";
import {OriginalViewProps, } from "../../common/base";
import {createItem,} from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {DeviceSurvey} from "../../elevator/editor";
import {config设备概况, config证书概要, EntranceSetup} from "./orcBase";
import {Conclusion} from "./Conclusion";
import {InspectionItem} from "./InspectionItem";
import {ProjectR} from "../../gas/utilityNj/ProjectR";
import {Text} from "customize-easy-ui-component";

export const Projects记录 = [
  {name: '设备概况及检验结论', ha: 'Conclusion', do: true},
  {name: '项目表', ha: 'InspectionItem', do: true},
    //不是目录的，页面导航用处的
  {name: '八,受热面及其附件', ha: 'XmbIspItms_35', do: true, na:true},
  {name: '十四,其他施工记录及验收', ha: 'XmbIspItms_70', do: true, na:true},
  {name: '检验证书', ha: 'Certificate', do: true, na:true},
];
export const tail注解 = <Text css={{"@media print": {fontSize: '0.75rem'}}}>
  说明：检查结果栏可用“√”表示符合，“○”表示基本符合，“×”表示不符合，“－”表示无此项。
</Text>;

const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('ProjectList', <ProjectR nrec config={Projects记录} label={'记录目录页'}/>),
  createItem('Survey', <DeviceSurvey config={config设备概况} label={'检验结论报告-概况'}/>),
  createItem('CertificateSummary', <DeviceSurvey config={config证书概要} label={'证书的设备概况部分'}/>),
  createItem('Conclusion', <Conclusion label={'检验结论报告-下结论'}/>),
  createItem('InspectionItem', <InspectionItem part={1} label={'1，安装单位资源，出厂资料，设计文件'}/>),
  createItem('XmbIspItms_15', <InspectionItem part={2} label={'2，锅炉基础，钢结构，受压部件要求'}/>),
  createItem('XmbIspItms_35', <InspectionItem part={3} label={'3，受热面及其附件，主要连接管道'}/>),
  createItem('XmbIspItms_53', <InspectionItem part={4} label={'4，无损检测，蒸汽吹灰，水压试验，安全附件和仪表'}/>),
  createItem('XmbIspItms_70', <InspectionItem part={5} label={'5，其他施工记录及验收记录，竣工资料，发现问题'}/>),
];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
